﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplateManageLeftTree.aspx.cs"
    Inherits="Whir_System_Module_Template_TemplateManageLeftTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <!-- ExtJs-->
    <link rel="stylesheet" type="text/css" href="<%= ResolveUrl("../../Js/extjs2/resources/css/ext-all.css") %>" />
    <link rel="stylesheet" type="text/css" href="<%= ResolveUrl("../../Js/extjs2/resources/css/xtheme-gray.css") %>" />

    <script type="text/javascript" src="<%= ResolveUrl("../../Js/extjs2/adapter/ext/ext-base.js") %>"></script>

    <script type="text/javascript" language="javascript" src="<%= ResolveUrl("../../Js/extjs2/ext-all.js") %>"></script>

    <style type="text/css">
    .x-tree-node-collapsed .x-tree-node-icon, .x-tree-node-expanded .x-tree-node-icon, .x-tree-node-leaf .x-tree-node-icon{
	    border: 0 none;
	    height: 16px;
	    margin: 0;
	    padding: 0;
	    vertical-align: top;
	    width: 16px;
	    background-position:center;
        background-repeat: no-repeat;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="container" style="overflow: auto; height: 400px; border: 0px; margin-left: 5px;
            margin-top: 5px;">
        </div>
    </form>
</body>
</html>

<script type="text/javascript">
Ext.onReady(function(){
    Ext.QuickTips.init();
    
    var mytree=new Ext.tree.TreePanel({
        el:"container",
        animate:true,
        title:"前台页面管理",
        collapsible:true,
        containerScroll: true, 
        enableDD:true,
        enableDrag:true,
        rootVisible:false,
        autoScroll:true,
        autoHeight:true,
        width:150,
        lines:true
    });

    //根节点
    var root=new Ext.tree.TreeNode({
        id:"root",
        text:"前台页面管理",
        expanded:true
    });
    
    var root1 = new Ext.tree.TreeNode({
        id:"templeteManage",
        text:"模板库管理",
        expanded:true
    });        
    
    /*root.appendChild(new Ext.tree.TreeNode({
        id:"css",
        text:"Css",
        href:"TemplateOtherManage.aspx",
        hrefTarget:"contentFrame",
        qtip:"管理网站前台的 css"
    }));
    
    root.appendChild(new Ext.tree.TreeNode({
        id:"images",
        text:"Images",
        href:"TemplateOtherManage2.aspx",
        hrefTarget:"contentFrame",
        qtip:"管理网站前台的 images"
    }));
    
    root.appendChild(new Ext.tree.TreeNode({
        id:"media",
        text:"Media",
        href:"TemplateOtherManage3.aspx",
        hrefTarget:"contentFrame",
        qtip:"管理网站前台的 media"
    }));
    
    root.appendChild(new Ext.tree.TreeNode({
        id:"script",
        text:"JavaScript",
        href:"TemplateOtherManage4.aspx",
        hrefTarget:"contentFrame",
        qtip:"管理网站前台的 JavaScript"
    }));*/
    
    root1.appendChild(new Ext.tree.TreeNode({
        id:"webCn",
        text:"中文模板",
        href:"TemplateList.aspx?quickdir=cn",
        hrefTarget:"contentFrame",
        qtip:"网站的 中文 模板目录",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));
    
    root1.appendChild(new Ext.tree.TreeNode({
        id:"webEn",
        text:"英文模板",
        href:"TemplateList.aspx?quickdir=en",
        hrefTarget:"contentFrame",
        qtip:"网站的 英文 模板目录",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));
    
        
    root1.appendChild(new Ext.tree.TreeNode({
        id:"webTempleteCom",
        text:"包含文件管理",
        href:'TemplateList.aspx?quickdir=template_com',
        hrefTarget:"contentFrame",
        qtip:"网站的 Templete_COM 模板目录",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));
    
    root1.appendChild(new Ext.tree.TreeNode({
        id:"webExample",
        text:"示例参考模板",
        href:"TemplateList.aspx?quickdir=example",
        hrefTarget:"contentFrame",
        qtip:"ezEIP模板示例参考文件",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));    
    
    root.appendChild(root1);
    
    var root2 = new Ext.tree.TreeNode({
        id:"templeteSet",
        text:"快捷设置",
        expanded:true
    });
    
    root2.appendChild(new Ext.tree.TreeNode({
        id:"TemplateTest",
        text:"测试模板",
        href:'#',
        hrefTarget:"contentFrame",
        qtip:"测试模板各种各样的问题",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));
    
    
    root2.appendChild(new Ext.tree.TreeNode({
        id:"webAutoSelect",
        text:"匹配模板",
        href:'Main.aspx',
        hrefTarget:"_parent",
        qtip:"快捷设置栏目对应模板",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));
    
    /*root2.appendChild(new Ext.tree.TreeNode({
        id:"webCreateFileName",
        text:"页面命名设置",
        href:'TemplateList.aspx?quickdir=template_com',
        hrefTarget:"contentFrame",
        qtip:"设置栏目对应生成的文件名和规则",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));*/
    
    root2.appendChild(new Ext.tree.TreeNode({
        id:"webTempleteHelp",
        text:"模板语言参考",
        href:'#',
        hrefTarget:"contentFrame",
        qtip:"万户置标帮助文档",
        icon:"../../Js/extjs2/resources/images/default/tree/folder.gif"
    }));    
    
    root.appendChild(root2);
    

    mytree.setRootNode(root);

    mytree.render();
})


</script>

